{% extends 'base.html' %}
{% load i18n static %}

{% block title %}
    登录
{% endblock %}
    
{% block extrahead %}{{ block.super }}
<link rel="stylesheet" href="{% static 'users/css/login.css' %}">
{% endblock %}

{% block header %}{% endblock %}


{% block section %}
<section class="hero is-primary is-medium is-fullheight">
    <div class="hero-body">
        <div class="container">
            <div class="columns is-centered">
                <div class="column is-5">
                    <div class="box">
                        
                        <p class="subtitle has-text-centered1 has-text-grey is-size-4">登 录</p>
                        <!-- <h1 class="title has-text-dark has-text-centered">DjangoMall</h1> -->
                        <form action="" method="post">
                            {% csrf_token %}
                            {% for field in form %}
                            <div class="field mt-3">
                                <div class="control">
                                    {{ field.label_tag }}
                                    {{ field }}
                                    <div class=" is-size-7 has-text-danger">
                                        {{ field.errors }}
                                    </div>
                                </div>
                            </div>
                            {% endfor %}
                            <!-- <input type="hidden" name="anext" value="{{ anext }}"> -->
                            <div class="field mt-4 mb-4">
                                <div class="control">
                                    <input class="button is-primary is-fullwidth" type="submit" value="登录">
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
{% endblock %}
    